LassoScript Utility
Basics Browse Detail

[Image->Execute]

Tag Link [Image->Execute] Category Image
Type Member Source Available Yes
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

Provides direct access to the ImageMagick command-line interface, allowing three additional ImageMagick commands to be executed. The following three commands are supported:

- Mogrify
- Montage
- Composite

See http://www.imagemagick.org/script/command-line-tools.php for documentation on these ImageMagick commands.

Note: The [Image->Execute] tag only supports the three commands listed. Much of the functionality of the other ImageMagick commands is provided directly by other member tags.

Syntax

[Image Variable->(Execute:'mogrify -pen yellow -draw "rectangle 10,5 40,35"')]

Parameters

Required Parameters
'Command' ImageMagick command to execute.

Examples

To execute an ImageMagick command using Lasso:

Use the [Image->Execute] tag on a defined image variable, with the desired command as the parameter. The following example shows the Mogrify command for adding a pretty blue border to an image.

[Var: 'MyImage' =(Image: '/images/image.gif')]
[$MyImage->(Execute: 'mogrify -bordercolor blue -border 3x3')]
[$MyImage->(Save: '/images/image.gif')]